
<script>
    $("body").addClass("home");
</script>

<div class="navbar navbar-fixed-top nbg">
    <div class="navbar-inner">
        <!--<a class="brand" href="#">Title</a>--> 
        <ul class="nav pull-right">
            <li class="dropdown">
                <a href="#" class="dropdown-toggle" data-toggle="dropdown">
                    <i class="icon-user"></i> <b><?php echo $authuser['fname']; ?></b>
                    <b class="caret"></b>
                </a>
                <ul class="dropdown-menu">
                    <li><a href="<?php echo $this->Html->url(array('action' => 'logout')); ?>"><i class="icon-off"></i> Sign Out</a></li>
                </ul>
            </li>
        </ul> 
    </div>
</div>

<div class="row-fluid">
    <div class="image-wrapper">
        <?php echo $this->Html->image('app/logo.png'); ?>
    </div>
</div>

<div class="row-fluid">
    <div class="search-row">
        <div style="color: red; padding: 10px; text-align: center;"><?php echo $this->Session->flash(); ?></div>
        
        <form action="<?php echo $this->Html->url(array('action' => 'search')); ?>" method="post">
            <div class="input-append" style="height: 45px;">
                <input name="Student[id]" type="text" class="input-xxlarge" autofocus="autofocus" placeholder="Find Student By Index No." required="" style="height: 100%;" />
                <button class="btn btn-large" type="submit" value="Search" style="height: 100%;"><i class="icon-search"></i></button>
            </div>
        </form>
    </div>
</div>

<div class="row-fluid">
    <div class="button-row">
        <a class="shortcut" href="#">
            <span class="button-icon"><i class="icon-folder-open icon-5x"></i></span>
            <span class="button-label">History</span>
        </a>
        <?php
            if($authuser['user_level'] == 'Supervisor'){
        ?>
                <a class="shortcut" href="<?php echo $this->Html->url(array('controller'=>'Bank','action' => 'reports')); ?>">
                    <span class="button-icon"><i class="icon-cogs icon-5x"></i></span>
                    <span class="button-label">Reports</span>
                </a>
        <?php
            }
        ?>

        <a class="shortcut" href="<?php echo $this->Html->url(array('action' => 'logout')); ?>">
            <span class="button-icon"><i class="icon-off icon-5x"></i></span>
            <span class="button-label">Sign Out</span>
        </a>
    </div>
</div>